/**
 * @description 获取系统初始化设置的参数
 * @author xunzhaotech
 * @date 2019-05-24
 * @param{设备}
 * @param{}
 */
// 引入站点基本配置
import base from '@/config/base.config'
// 引入存储
import StoreUtils from '@/utils/storage'

const state = {
  keepAlive:true,
  base: base,
  device: '',
  color: '',
  token: '',
  isCollapse: false,
  isFullScren: false,
  isShade: false,
  isLock: StoreUtils.getStore({ name: 'isLock' }) || false,
  showTag: StoreUtils.getStore({ name: 'showTag' }),
  showDebug: StoreUtils.getStore({ name: 'showDebug' }),
  showCollapse: StoreUtils.getStore({ name: 'showCollapse' }),
  showSearch: StoreUtils.getStore({ name: 'showSearch' }),
  showLock: StoreUtils.getStore({ name: 'showLock' }),
  showFullScren: StoreUtils.getStore({ name: 'showFullScren' }),
  showTheme: StoreUtils.getStore({ name: 'showTheme' }),
  showColor: StoreUtils.getStore({ name: 'showColor' }),
  showMenu: StoreUtils.getStore({ name: 'showMenu' }),
  theme: StoreUtils.getStore({ name: 'theme' }) || '#409EFF',
  themeName: StoreUtils.getStore({ name: 'themeName' }) || 'theme-white',
  lockPasswd: StoreUtils.getStore({ name: 'lockPasswd' }) || '',
  screen: -1,
  avatar: '',
  nickname: '',
  welcome: '',
  roles: '',
  userInfo: '',
  addRouters: '',
  multiTab: '',
  layoutMode: '',
  navTheme: '',
  primaryColor: '',
  colorWeak: '',
  fixedHeader: '',
  fixSiderbar: '',
  fixSidebar: '',
  contentWidth: '',
  autoHideHeader: '',
  sidebarOpened: '',
  keepAlive: true,
  locale: 'zhCN'
}
// 导出
export default state
